// --------------------------------------------------
// 时间线
// @Author: steven.wjx
// @Date:   2020-03-05 13:17:50
// --------------------------------------------------
.#{$ui-name}timeline {
	list-style: none;
	padding: 0;
	margin: 0;

	.#{$ui-name}timeline-item {
		margin: 0;
		list-style: none;
		position: relative;
		padding-bottom: 10px;

		.#{$ui-name}timeline-tail {
			height: 100%;
			border-left: 1px solid #e8eaec;
			position: absolute;
			left: 6px;
			top: 2px;
			z-index: 99;
		}

		.#{$ui-name}timeline-head {
			width: 10px;
			height: 10px;
			background-color: #fff;
			border-radius: 50%;
			border: 1px solid transparent;
			position: absolute;
			top: 2px;
			border-color: $primary-color;
			color: $primary-color;
			z-index: 99;
		}

		.#{$ui-name}timeline-icon {
			width: 20px;
			height: 20px;
			line-height: 20px;
			text-align: center;
			background-color: #fff;
			border-radius: 50%;
			border: 1px solid transparent;
			position: absolute;
			top: 0;
			color: #fff;
			font-size: 16px;
			background-color: $primary-color;
			z-index: 99;
		}

		.#{$ui-name}timeline-block {
			padding: 0 0 0 25px;
			position: relative;

			.#{$ui-name}timeline-title {
				margin-top: 0;
				margin-bottom: 0;
				font-size: 14px;
				font-weight: 400;
				margin-bottom: 10px;
			}

			.#{$ui-name}timeline-text {
				margin-top: 0;
				margin-bottom: 0;
				font-size: 12px;
			}

			.#{$ui-name}timeline-date {
				margin-top: 5px;
				font-size: 13px;
				font-weight: 500;

				>small {
					font-weight: 400;
					color: #1ab394;
				}
			}
		}
	}

	&.#{$ui-name}timeline-vertical {
		.#{$ui-name}timeline-tail {
			left: 11px;
		}

		.#{$ui-name}timeline-block {
			padding-left: 45px;
			background-color: #fff;

			&:before {
				display: block;
				width: 0;
				height: 0;
				content: '';
				position: absolute;
				top: 12px;
				left: -8px;
				border: 4px solid transparent;
				border-right-color: #fff;
			}
		}
	}

	&.#{$ui-name}timeline-alternate {
		.#{$ui-name}timeline-tail {
			left: 50%;
		}

		.#{$ui-name}timeline-head {
			left: 50%;
			margin-left: -6px;
		}

		.#{$ui-name}timeline-icon {
			left: 50%;
			margin-left: -10px;
		}

		.#{$ui-name}timeline-item-left {
			.#{$ui-name}timeline-block {
				text-align: right;
				padding-right: 50%;
				margin-right: 25px;
			}
		}

		.#{$ui-name}timeline-item-right {
			.#{$ui-name}timeline-block {
				text-align: left;
				padding-left: 50%;
				margin-left: 22px;
			}
		}
	}
}